package com.jinhua.mybatis.entity;

import java.io.Serializable;

/**
 * token操作类
 */
public class Token implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 用户Id
     */
    private Long userId;
    /**
     * token凭证
     */
    private String token;
    /**
     * 消息提示
     */
    private String msg;


    /**
     * 用户角色
     */
    private String role;


    /**
     * 过期时间
     */
    private Long expireTime;

    /**
     * 上次登录的clientId
     */
    private String lastClientId;


    /**
     * 限制访问路径
     */
    private String urls;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Long expireTime) {
        this.expireTime = expireTime;
    }

    public String getLastClientId() {
        return lastClientId;
    }

    public void setLastClientId(String lastClientId) {
        this.lastClientId = lastClientId;
    }

    public String getUrls() {
        return urls;
    }

    public void setUrls(String urls) {
        this.urls = urls;
    }

	@Override
	public String toString() {
		return "Token{" +
			"userId=" + userId +
			", token='" + token + '\'' +
			", msg='" + msg + '\'' +
			", role='" + role + '\'' +
			", expireTime=" + expireTime +
			", lastClientId='" + lastClientId + '\'' +
			", urls='" + urls + '\'' +
			'}';
	}
}
